package com.tech.zhidengxian.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.google.gson.annotations.SerializedName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.constant.GoodsState;
import com.tech.zhidengxian.model.constant.TransportType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class GoodsDTO implements Serializable {
    private Long id;
    @TableField(typeHandler = JsonTypeHandler.class)
    private List<CosDTO> imageUrl;
    @TableField(typeHandler = JsonTypeHandler.class)
    private UserDTO publisherInfo;
    private Date publishTime;
    private Date updateTime;
    /**是否删除**/
    private boolean isDeleted;
    /**商品状态**/
    private GoodsState goodsState;
    /**商品价格**/
    private Double price;
    private String city;
    private String school;
    @SerializedName("用户id")
    private Long uid;
    @SerializedName("商品描述")
    private String detail;
    private Long browseCount;
    private Long commentCount;
    private Long collectCount;

    @SerializedName("运输方式")
    private TransportType transportType;
    @SerializedName("分类信息")
    private String category;
    @SerializedName("运费")
    private Double freight;

    private int firstImgHeight;
}
